#include <iostream>
using std::cout;
using std::endl;

void test0(){//数组指针
    int arr[5] = {1,2,3,4,5};
    //这里的5不能省略，表示的是p需要去申请多大的空间
    int (*p)[5] = &arr;
    int * p2 = arr;
    int * p3 = &arr[0];
    cout << p << endl;
    cout << p2 << endl;
    cout << p + 1 << endl;
    cout << p2 + 1<< endl;
    cout << p3 + 1<< endl;
    /* for(int i = 0; i < 5; ++i){ */
    /*     cout << (*p)[i] << endl; */
    /* } */
}

int main(void){
    test0();
    return 0;
}
